//
//  EmptyDataView.m
//  NiuBanJinGold
//
//  Created by Billy on 15/11/5.
//  Copyright © 2015年 zzjr. All rights reserved.
//

#import "EmptyDataView.h"

@implementation EmptyDataView

- (instancetype)initWithFrame:(CGRect)frame {
    
    self = [super initWithFrame:frame];
    
    if (self) {
        
        [self configureView];
    }
    
    return self;
}

// 添加一个label 用于显示暂无数据

- (void) configureView {
    
    [self setBackgroundColor:BASECOLOR];
    
    CGRect frame = self.frame;
    frame.origin.y  = self.frame.size.height/2.0;
    
    UILabel *label_tmp = [[UILabel alloc]initWithFrame:CGRectMake(frame.origin.x, frame.origin.y,frame.size.width, 20.0)];
    [self addSubview:label_tmp];
    
    [label_tmp setTextColor:[UsefulUtil colorWithHexString:@"#989898"]];
    [label_tmp setText:@"暂无记录!"];
    [label_tmp setAdjustsFontSizeToFitWidth:YES];
    [label_tmp setTextAlignment:NSTextAlignmentCenter];
}


@end
